package com.Shoping.entity;

public class Orders {
    private  String oNumber;//订单号为订单主键，随机生成
    private  int pId;//订单详情主键
    private  String oTime;//订单创建时间
    private  String oAmount;//订单总金额
    private  int oState;//订单状态，0为未支付，1为已支付代发货，2为已收货待评价，3为已评价，4为已关闭

    public Orders(String oNumber, int pId, String oTime, String oAmount, int oState) {
        this.oNumber = oNumber;
        this.pId = pId;
        this.oTime = oTime;
        this.oAmount = oAmount;
        this.oState = oState;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "oNumber='" + oNumber + '\'' +
                ", pId=" + pId +
                ", oTime='" + oTime + '\'' +
                ", oAmount='" + oAmount + '\'' +
                ", oState=" + oState +
                '}';
    }

    public void setoNumber(String oNumber) {
        this.oNumber = oNumber;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public void setoTime(String oTime) {
        this.oTime = oTime;
    }

    public void setoAmount(String oAmount) {
        this.oAmount = oAmount;
    }

    public void setoState(int oState) {
        this.oState = oState;
    }

    public String getoNumber() {
        return oNumber;
    }

    public int getpId() {
        return pId;
    }

    public String getoTime() {
        return oTime;
    }

    public String getoAmount() {
        return oAmount;
    }

    public int getoState() {
        return oState;
    }

    public Orders() {
    }
}
